<!--#include file="class\AdodbHelper.asp"-->
<!--#include file="class\JSON.asp"-->
<!--#include file="class\CodeResponse.asp"-->
<!--#include file="class\StringBuilder.asp"-->
<!--#include file="lib\lib.asp"-->
<%
  'this asp depends on classes and provide data access for pages
	dim db
  dim jsonConvertor
  set jsonConvertor=new JSON
	set db = new AdodbHelper
  jsonConvertor.toResponse=false
	db.SetConnToFile "\func.mdb"
  '初始化cookie
  call setCookie()

'  public function admin_languages_list()
'    dim recset
'    set recset = db.ExecQuery("select LanID, LanName from Languages")
'    admin_languages_list = jsonConvertor.toJson(empty, recset, false)
'    db.ReleaseRecordset recset
'  end function


  'functions
'  public function get_article_by_id(id)
'    dim params(0)
'    params(0) = cint(id)
'    set get_article_by_id = db.ExecParamQuery("SELECT FuncID, FuncName, FuncType, CodeType, CreateTime, CreatorMail, Code,Likes FROM Functions Where FuncID=?",params)
'  end function
  '获取分享的函数的评论
%>